﻿using System;
using System.Collections.Generic;
using System.Web;
using DAO;

namespace BUS
{
    public class DonHangBUS
    {
        private DonHangDAO _dDAO;

        public DonHangBUS()
        {
            _dDAO = new DonHangDAO();
        }

        public bool Them(DONHANG _DONHANG)
        {
            return _dDAO.Them(_DONHANG);
        }
        public bool Xoa(DONHANG _DONHANG)
        {
            return _dDAO.Xoa(_DONHANG);
        }
        public bool Sua(DONHANG _DONHANG)
        {
            return _dDAO.Sua(_DONHANG);
        }
        public DONHANG TimTen(String _name)
        {
            return _dDAO.TimTen(_name);
        }
        public DONHANG ChiTiet(String _id)
        {
            return _dDAO.LayID(_id);
        }
        public List<DONHANG> DonHangMoiNhat()
        {
            return _dDAO.DonHangMoiNhat();
        }
        public List<DONHANG> LietKe()
        {
            return _dDAO.LietKe();
        }

        // added by Khuong
        public List<DONHANG> getDsDonHangCuaDN(string idDoanhNghiep)
        {
            return _dDAO.getDsDonHangCuaDN(idDoanhNghiep);
        }
    }
}